package com.yangjun.utils;

import java.io.File;

public class FileUtils {
	public static boolean deleteFile(String fileName){
		File file = new File(fileName);
		if(file.exists()&&file.isFile()){
			if(file.delete()){
				System.out.println("删除单个文件成功！");
				return true;
			}else{
				System.out.println("删除单个文件失败！");
				return false;
			}
		}else{
			System.out.println("删除单个文件失败，"+fileName+"不是一个文件！");
			return false;
		}
	}
}
